#ifndef _ML_DATASET_TXT_FILE_LOADER_H_
#define _ML_DATASET_TXT_FILE_LOADER_H_
#include "MLCommon.h"
#include "MLDataSet.h"
_MYLABLIB_BEGIN

class CMLTools_TxtFileLoader
{
public:
	CMLTools_TxtFileLoader(void);
	~CMLTools_TxtFileLoader(void);

public:
	// Methods
	int  Initialize(const std::wstring& wstrFileName, int nStartPos = -1, int nEndPos = -1);

	// Data Points
	int  Load(CMLDataSet& dataSet);
	int  Load(CMLDataSet& dataSet, int nBufSize);
	
	void Close();

private:
	// Fields
	std::wifstream m_FileStream;
	int m_nStartPos;
	int m_nEndPos;
	int m_nPos;
};

_MYLABLIB_END
#endif
